package thread;

public class DaemonThread extends Thread {
    public DaemonThread(){
        super.setDaemon(true);//后台线程
    }

    @Override
    public void run() {
        while(true){
            System.out.println("This is deamon Thread");
        }
    }
}
